package cn.saddyfire.pattern.strategy;

/**
 * @author Dee
 * @date 2024/2/6
 * <p>Description:
 */
public class Client {
    public static void main(String[] args) {
        SalesMan salesMan = new SalesMan(new StrategyA());
        salesMan.salesManShow();
        System.out.println("========");
        salesMan.setStrategy(new StrategyB());
        salesMan.salesManShow();
        System.out.println("========");
        salesMan.setStrategy(new StrategyC());
        salesMan.salesManShow();
    }
}
